package com.liu.susu;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableAsync //@EnableAsync 注解放在异步任务类上，或者启动类上
@EnableAspectJAutoProxy(exposeProxy = true)
//@EnableScheduling //@EnableScheduling 该注解放到定时任务类上 或 启动类上
public class SpringbootJpaApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootJpaApplication.class, args);
    }

}
